<template>
  <div class="app">
    <h2>我是App组件</h2>
    <br>
    <Student :msg="msg" :money="money" :car="car" />
  </div>
</template>

<script>

  import Student from './components/Student'

  export default {
      name: 'App',
      components: {Student},
      data(){
        return{
          msg: '你要努力赚钱呀!',
          money: 1000000,
          car: {
            name: '奥拓',
            price: 50000,
            age: 3
          }
        }
      }
  }
</script>

<style>
  .app{
    background: #aaa;
    padding: 30px;
  }
</style>